home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_300
/
335_02
/
as7000.txt
< prev
next >
Wrap
Text File
|
1990-12-02
|
15KB
|
661 lines
- 1 -
A. Appendix_for_as7000_Frankenstein_Assembler
A.1 Pseudo_Operations
A.1.1 Standard_Pseudo_Operation_Mnemonics
End END
File Inclusion INCL INCLUDE
If IF
Else ELSE
End If ENDI
Equate EQU
Set SET
Org ORG
Reserve Memory RESERVE RMB
Define Byte Data BYTE DB FCB
Define Word Data DW FDB WORD
Define String Data FCC STRING
Define Character Set Translation CHARSET
Define Character Value CHARDEF CHD
Use Character Translation CHARUSE
A.2 Instructions
A.2.1 Differences_with_the_TI_defined_Syntax
- 2 -
TI syntax as7000 syntax
op % immediate , register op # immediate , register
op % immed , register, jump dest op # immed , register , jump dest
op @ label op label
op @ label ( B ) op expr ( B )
op *register op [ register ]
movd % immed ( B ) , register movd # immed (B), register
Constants
?0101010 %01010101
>89ab $89ab
'''' "'"
Comments
after the last operand everything following a semicolon
Symbols
R0-R255 equ with value between 0 and $ff
R0-R255 0 to 255, Not Recommended !
P0-P255 equ with value between $100 and $1ff
P0-P255 256 to 511, Not Recommended !
A.2.2 Instruction_List
Opcode Syntax Selection Criteria
ADC '#' expr ',' expr
ADC '#' expr ',' expr DSTA
ADC '#' expr ',' expr DSTB
ADC expr ',' expr
ADC expr ',' expr DSTA
ADC expr ',' expr DSTB
ADC expr ',' expr SRCB DSTA
ADD '#' expr ',' expr
ADD '#' expr ',' expr DSTA
ADD '#' expr ',' expr DSTB
ADD expr ',' expr
ADD expr ',' expr DSTA
ADD expr ',' expr DSTB
ADD expr ',' expr SRCB DSTA
AND '#' expr ',' expr
- 3 -
Opcode Syntax Selection Criteria
AND '#' expr ',' expr DSTA
AND '#' expr ',' expr DSTB
AND expr ',' expr
AND expr ',' expr DSTA
AND expr ',' expr DSTB
AND expr ',' expr SRCB DSTA
ANDP '#' expr ',' expr
ANDP expr ',' expr SRCA
ANDP expr ',' expr SRCB
BR '[' expr ']'
BR expr '(' REG ')' SRCB
BR expr
BTJO '#' expr ',' expr ',' expr
BTJO '#' expr ',' expr ',' expr DSTA
BTJO '#' expr ',' expr ',' expr DSTB
BTJO expr ',' expr ',' expr
BTJO expr ',' expr ',' expr DSTA
BTJO expr ',' expr ',' expr DSTB
BTJO expr ',' expr ',' expr SRCB DSTA
BTJOP '#' expr ',' expr ',' expr
BTJOP expr ',' expr ',' expr SRCA
BTJOP expr ',' expr ',' expr SRCB
BTJZ '#' expr ',' expr ',' expr
BTJZ '#' expr ',' expr ',' expr DSTA
BTJZ '#' expr ',' expr ',' expr DSTB
BTJZ expr ',' expr ',' expr
BTJZ expr ',' expr ',' expr DSTA
BTJZ expr ',' expr ',' expr DSTB
BTJZ expr ',' expr ',' expr SRCB DSTA
BTJZP '#' expr ',' expr ',' expr
BTJZP expr ',' expr ',' expr SRCA
BTJZP expr ',' expr ',' expr SRCB
CALL '[' expr ']'
CALL expr '(' REG ')' SRCB
CALL expr
CLR expr
CLR expr DSTA
CLR expr DSTB
- 4 -
Opcode Syntax Selection Criteria
CLRC
CMP '#' expr ',' expr
CMP '#' expr ',' expr DSTA
CMP '#' expr ',' expr DSTB
CMP expr ',' expr
CMP expr ',' expr DSTA
CMP expr ',' expr DSTB
CMP expr ',' expr SRCB DSTA
CMPA '[' expr ']'
CMPA expr '(' REG ')' SRCB
CMPA expr
DAC '#' expr ',' expr
DAC '#' expr ',' expr DSTA
DAC '#' expr ',' expr DSTB
DAC expr ',' expr
DAC expr ',' expr DSTA
DAC expr ',' expr DSTB
DAC expr ',' expr SRCB DSTA
DEC expr
DEC expr DSTA
DEC expr DSTB
DECD expr
DECD expr DSTA
DECD expr DSTB
DINT
DJNZ expr ',' expr
DJNZ expr ',' expr DSTA
DJNZ expr ',' expr DSTB
DSB '#' expr ',' expr
DSB '#' expr ',' expr DSTA
DSB '#' expr ',' expr DSTB
DSB expr ',' expr
DSB expr ',' expr DSTA
DSB expr ',' expr DSTB
DSB expr ',' expr SRCB DSTA
EINT
IDLE
- 5 -
Opcode Syntax Selection Criteria
INC expr
INC expr DSTA
INC expr DSTB
INV expr
INV expr DSTA
INV expr DSTB
JC expr
JEQ expr
JGE expr
JGT expr
JHS expr
JL expr
JLT expr
JMP expr
JN expr
JNC expr
JNE expr
JNZ expr
JP expr
JPZ expr
JZ expr
LDA '[' expr ']'
LDA expr '(' REG ')' SRCB
LDA expr
LDSP
MOV '#' expr ',' expr
MOV '#' expr ',' expr DSTA
- 6 -
Opcode Syntax Selection Criteria
MOV '#' expr ',' expr DSTB
MOV expr ',' expr
MOV expr ',' expr